package com.xjtlu.manager.response;

public enum ResultCode implements IErrorCode {
    SYSTEM_FAILED(-1, "系统错误"),
    LOGIN_FAILED(-2, "登录失败"),
    ;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
